<?php
// +----------------------------------------------------------------------
// | 跃飞 [ 将来的你一定会感激现在奋斗的自己 ]
// +----------------------------------------------------------------------
// | Author: 钟贵廷
// +----------------------------------------------------------------------
// | Author URI: https://git.oschina.net/yeafy
// +----------------------------------------------------------------------
// | weChat:gt845272922  qq:845272922
// +----------------------------------------------------------------------

namespace app\yeafy\abstractFactory\demo1;

/**
 * 描述:番茄酱工厂 能制作所有国家的番茄酱pizza
 * @author 钟贵廷
 * @WeChat gt845272922
 * @qq 845272922
 * Class KetchupPizzaFactory
 * @package app\yeafy\abstractFactory\demo1
 */
class KetchupPizzaFactory extends  PizzaFactory
{
    public function createChinesePizza()
    {
        echo "开始制作中国pizza<br/>";
        $kcp = new KetchupChinesePizza();
        $kcp->addWater();
        $kcp->addFlour();
        $kcp->addSeasoning();
    }

    public function createUSPizza()
    {
        echo "开始制作美国pizza<br/>";
        $kup = new KetchupUSPizza();
        $kup->addWater();
        $kup->addFlour();
        $kup->addSeasoning();
    }

}